package com.crm.controller;

import com.crm.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController {

    @Autowired
    private AccountService accountService;


    @RequestMapping(value = "/account/info",method = RequestMethod.GET)
    public Object getInfo(){
        System.out.println("ribbon");
        return accountService.accountInfo();
    }
}
